<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/28
 * Time: 0:08
 */

namespace Admin\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class OrganizeResources extends JsonResource
{
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'name'=>$this->name,
            "state"=> $this->state,
            "created_at"=> $this->created_at->toDateTimeString(),
        ];
    }
}